package com.eshop.modules.mp.service.mapper;

import org.apache.ibatis.annotations.Update;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import com.eshop.modules.mp.domain.Article;
import com.eshop.common.mapper.CoreMapper;

@Repository
public interface ArticleMapper extends CoreMapper<Article>
{
    @Update({ "update article set visit=visit+1 where id=#{id}" })
    int incVisitNum(@Param("id") final int id);
}
